<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--1.可以使用本地的资源 elementui的css + js +vue.js-->
    <!--css-->
<!--    <link rel="stylesheet" href="element-ui/lib/theme-chalk/index.css">-->

    <!--2.使用在线资源-->
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <style>
    .el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
    }

    .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
    }

    .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 160px;
    }

    body > .el-container {
    margin-bottom: 40px;
    }

    .el-container:nth-child(5) .el-aside,
    .el-container:nth-child(6) .el-aside {
    line-height: 260px;
    }

    .el-container:nth-child(7) .el-aside {
    line-height: 320px;
    }
    </style>
</head>
<body>
<div id="app">
<!--    <el-row>-->
<!--        <el-button>默认按钮</el-button>-->
<!--        <el-button type="primary">主要按钮</el-button>-->
<!--        <el-button type="success">成功按钮</el-button>-->
<!--        <el-button type="info">信息按钮</el-button>-->
<!--        <el-button type="warning">警告按钮</el-button>-->
<!--        <el-button type="danger">危险按钮</el-button>-->
<!--    </el-row>-->

<!--    <el-row>-->
<!--        <el-button plain>朴素按钮</el-button>-->
<!--        <el-button type="primary" plain>主要按钮</el-button>-->
<!--        <el-button type="success" plain>成功按钮</el-button>-->
<!--        <el-button type="info" plain>信息按钮</el-button>-->
<!--        <el-button type="warning" plain>警告按钮</el-button>-->
<!--        <el-button type="danger" plain>危险按钮</el-button>-->
<!--    </el-row>-->

<!--    <el-row>-->
<!--        <el-button round>圆角按钮</el-button>-->
<!--        <el-button type="primary" round>主要按钮</el-button>-->
<!--        <el-button type="success" round>成功按钮</el-button>-->
<!--        <el-button type="info" round>信息按钮</el-button>-->
<!--        <el-button type="warning" round>警告按钮</el-button>-->
<!--        <el-button type="danger" round>危险按钮</el-button>-->
<!--    </el-row>-->

<!--    <el-row>-->
<!--        <el-button icon="el-icon-search" circle></el-button>-->
<!--        <el-button type="primary" icon="el-icon-edit" circle></el-button>-->
<!--        <el-button type="success" icon="el-icon-check" circle></el-button>-->
<!--        <el-button type="info" icon="el-icon-message" circle></el-button>-->
<!--        <el-button type="warning" icon="el-icon-star-off" circle></el-button>-->
<!--        <el-button type="danger" icon="el-icon-platform-eleme">饿了么</el-button>-->
<!--    </el-row>-->

    <el-container>
        <el-aside width="230px">
            <el-menu
                    default-active="2"
                    class="el-menu-vertical-demo"
                    @open="handleOpen"
                    @close="handleClose"
                    background-color="#545c64"
                    text-color="#fff"
                    active-text-color="#ffd04b">
                <el-submenu index="1">
                    <template slot="title">
                        <i class="el-icon-location"></i>
                        <span>导航一</span>
                    </template>
                    <el-menu-item-group>
                        <template slot="title">分组一</template>
                        <el-menu-item index="1-1">选项1</el-menu-item>
                        <el-menu-item index="1-2">选项2</el-menu-item>
                    </el-menu-item-group>
                    <el-menu-item-group title="分组2">
                        <el-menu-item index="1-3">选项3</el-menu-item>
                    </el-menu-item-group>
                    <el-submenu index="1-4">
                        <template slot="title">选项4</template>
                        <el-menu-item index="1-4-1">选项1</el-menu-item>
                    </el-submenu>
                </el-submenu>
                <el-menu-item index="2">
                    <i class="el-icon-menu"></i>
                    <span slot="title">导航二</span>
                </el-menu-item>
                <el-menu-item index="3" disabled>
                    <i class="el-icon-document"></i>
                    <span slot="title">导航三</span>
                </el-menu-item>
                <el-menu-item index="4">
                    <i class="el-icon-setting"></i>
                    <span slot="title">导航四</span>
                </el-menu-item>
            </el-menu>

        </el-aside>
        <el-container>
            <el-header>Header</el-header>
            <el-main>
                <el-table
                        :data="tableData"
                        style="width: 100%">
                    <el-table-column
                            prop="date"
                            label="日期"
                            width="180">
                    </el-table-column>
                    <el-table-column
                            prop="name"
                            label="姓名"
                            width="180">
                    </el-table-column>
                    <el-table-column
                            prop="address"
                            label="地址">
                    </el-table-column>
                </el-table>
            </el-main>
        </el-container>
    </el-container>

</div>

</body>
</html>
<!--vue.js-->
<!--<script src="js/vue.js"></script>-->
<script src="https://unpkg.com/vue@2/dist/vue.js"></script>
<!--<script src="element-ui/lib/index.js"></script>-->
<!-- 引入组件库 -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script>
    new Vue({
        el:'#app',
        data(){
            return{
                name:'张三',
                tableData: [{
                    date: '2016-05-02',
                    name: '王小虎',
                    address: '上海市普陀区金沙江路 1518 弄'
                }, {
                    date: '2016-05-04',
                    name: '王小虎',
                    address: '上海市普陀区金沙江路 1517 弄'
                }, {
                    date: '2016-05-01',
                    name: '王小虎',
                    address: '上海市普陀区金沙江路 1519 弄'
                }, {
                    date: '2016-05-03',
                    name: '王小虎',
                    address: '上海市普陀区金沙江路 1516 弄'
                }]
            }
        }
    });
</script>